﻿using System;

namespace EmptyWallGallery.Core.BLL
{
    public class SessionCart
    {
        #region "Constructors"
        public SessionCart()
        {
        }

        public SessionCart(int productId, string productName, decimal unitPriceUsd, decimal unitPriceVnd, int discountPercentTage, int unitsInstock, string smallImages, 
            string description, DateTime addedDate, string sKu, int quantity)
        {
            ProductId = productId;
            ProductName = productName;
            UnitPriceUsd = unitPriceUsd;
            UnitPriceVnd = unitPriceVnd;
            DiscountPercentTage = discountPercentTage;
            UnitsInstock = unitsInstock;
            SmallImages = smallImages;
            Description = description;
            AddedDate = addedDate;
            Sku = sKu;
            Quantity = quantity;
        }
        #endregion

        #region "Public Properties"

        public int ProductId { get; set; }
        public string ProductName { get; set; }
        public decimal UnitPriceUsd { get; set; }
        public decimal UnitPriceVnd { get; set; }
        public int DiscountPercentTage { get; set; }
        public int UnitsInstock { get; set; }
        public string SmallImages { get; set; }
        public string Description { get; set; }
        public DateTime AddedDate { get; set; }
        public string Sku { get; set; }
        public int Quantity { get; set; }

        #endregion

        #region "Method"

        public long Total()
        {
            return (long)(Quantity * UnitPriceUsd);
        }

        #endregion
    }
}
